﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// UserRightItem
	/// </summary>
    [Serializable]
	public class UserRightItem
	{
		/// <summary>
		/// UserRightItemID
        /// </summary>
        [FieldName("UserRightItemID")]		
		public int UserRightItemID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RightName
        /// </summary>
        [FieldName("RightName")]		
		public string RightName
		{
			get;
			set;
		}
        
		/// <summary>
		/// RightOrder
        /// </summary>
        [FieldName("RightOrder")]		
		public int RightOrder
		{
			get;
			set;
		}
        
		/// <summary>
		/// RightInfo
        /// </summary>
        [FieldName("RightInfo")]		
		public string RightInfo
		{
			get;
			set;
		}
        
		/// <summary>
		/// RightCode
        /// </summary>
        [FieldName("RightCode")]		
		public string RightCode
		{
			get;
			set;
		}
        
		/// <summary>
		/// LimitedItem
        /// </summary>
        [FieldName("LimitedItem")]		
		public bool LimitedItem
		{
			get;
			set;
		}
        
		/// <summary>
		/// MenuItem
        /// </summary>
        [FieldName("MenuItem")]		
		public bool MenuItem
		{
			get;
			set;
		}
        
        public UserRightItem Clone()
        {
            return (UserRightItem)this.MemberwiseClone();
        }
        
        public UserRightItem()
        {
            RightName = string.Empty;
            RightInfo = string.Empty;
            RightCode = string.Empty;
        }
	}
}
